<template>
  <div>Grandson</div>
  <div>themeColor:{{themeColor}}</div>
 </template>
 <script setup>
import {inject} from 'vue'
//inject函数用于在组件中注入一个由祖先组件提供的值
const themeColor = inject('themeColor')
console.log(themeColor)
 </script>